<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BComboBox</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BComboBox">
			<h1>BComboBox</h1>
			<p>继承自<a href="BWidget.html">BWidget</a></p>
			<p id="resume">BComboBox是下拉编辑框，列表中的最多一项作为当前选中项，也可自行文本编辑。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BComboBox(BWidget*)">BComboBox</a>(BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BComboBox(Form,BWidget*)">BComboBox</a>(Form form, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#BComboBox(const BString&,BWidget*)">BComboBox</a>(const BString& text, BWidget* parent = 0);</td></tr>
				<tr><td align="right"/><td><a href="#~BComboBox()">~BComboBox</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setAlign(Align)">setAlign</a>(Align align);</td></tr>
				<tr><td align="right">Align </td><td><a href="#align() const">align</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setForm(Form)">setForm</a>(Form form);</td></tr>
				<tr><td align="right">Form </td><td><a href="#form() const">form</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setSpacing(int)">setSpacing</a>(int spacing);</td></tr>
				<tr><td align="right">int </td><td><a href="#spacing() const">spacing</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setEditable(bool)">setEditable</a>(bool editable);</td></tr>
				<tr><td align="right">bool </td><td><a href="#editable() const">editable</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setReadOnly(bool)">setReadOnly</a>(bool readOnly);</td></tr>
				<tr><td align="right">bool </td><td><a href="#readOnly() const">readOnly</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setArrowVisible(bool)">setArrowVisible</a>(bool arrowVisible);</td></tr>
				<tr><td align="right">bool </td><td><a href="#arrowVisible() const">arrowVisible</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setArrowSize(const BSize&)">setArrowSize</a>(const BSize& arrowSize);</td></tr>
				<tr><td align="right">const BSize&amp; </td><td><a href="#arrowSize() const">arrowSize</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setIconSize(const BSize&)">setIconSize</a>(const BSize& iconSize);</td></tr>
				<tr><td align="right">const BSize&amp; </td><td><a href="#iconSize() const">iconSize</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#setText(const BString&)">setText</a>(const BString& text);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#text() const">text</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setTextFormat(BTextFormat*)">setTextFormat</a>(BTextFormat* textFormat);</td></tr>
				<tr><td align="right">const BTextFormat* </td><td><a href="#textFormat() const">textFormat</a>() const;</td></tr>
				<tr><td align="right">BTextFormat* </td><td><a href="#textFormat()">textFormat</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setValue(const BValue&)">setValue</a>(const BValue& value);</td></tr>
				<tr><td align="right">const BValue&amp; </td><td><a href="#value() const">value</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#addItem(BComboItem*)">addItem</a>(BComboItem* item);</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#addItem(const BString&,const BValue&)">addItem</a>(const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#addItem(Graph, const BString&,const BValue&)">addItem</a>(Graph graph, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#addItem(BIcon*, const BString&,const BValue&)">addItem</a>(BIcon* icon, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#addItem(BImage*, const BString&,const BValue&)">addItem</a>(BImage* image, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">bool </td><td><a href="#insertItem(int, BComboItem*)">insertItem</a>(int pos, BComboItem* item);</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#insertItem(int, const BString&,const BValue&)">insertItem</a>(int pos, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#insertItem(int, Graph, const BString&,const BValue&)">insertItem</a>(int pos, Graph graph, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#insertItem(int, BIcon*, const BString&,const BValue&)">insertItem</a>(int pos, BIcon* icon, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#insertItem(int, BImage*, const BString&,const BValue&)">insertItem</a>(int pos, BImage* image, const BString& text, const BValue& value = BValue());</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeItem(BComboItem*)">removeItem</a>(BComboItem* item);</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeItem(const BString&)">removeItem</a>(const BString& text);</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeItem(int)">removeItem</a>(int index);</td></tr>
				<tr><td align="right">void </td><td><a href="#clearItems()">clearItems</a>();</td></tr>
				<tr><td align="right">bool </td><td><a href="#containItem(const BComboItem*) const">containItem</a>(const BComboItem* item) const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#containItem(const BValue&) const">containItem</a>(const BValue& value) const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#containItem(const BString&) const">containItem</a>(const BString& text) const;</td></tr>
				<tr><td align="right">int </td><td><a href="#itemIndex(const BComboItem*) const">itemIndex</a>(const BComboItem* item) const;</td></tr>
				<tr><td align="right">int </td><td><a href="#itemIndex(const BValue&) const">itemIndex</a>(const BValue& value) const;</td></tr>
				<tr><td align="right">int </td><td><a href="#itemIndex(const BString&) const">itemIndex</a>(const BString& text) const;</td></tr>
				<tr><td align="right">int </td><td><a href="#itemCount() const">itemCount</a>() const;</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#item(int)">item</a>(int index);</td></tr>
				<tr><td align="right">const BComboItem* </td><td><a href="#item(int) const">item</a>(int index) const;</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#itemOfText(const BString&)">itemOfText</a>(const BString& text);</td></tr>
				<tr><td align="right">const BComboItem* </td><td><a href="#itemOfText(const BString&) const">itemOfText</a>(const BString& text) const;</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#itemOfValue(const BValue&)">itemOfValue</a>(const BValue& value);</td></tr>
				<tr><td align="right">const BComboItem* </td><td><a href="#itemOfValue(const BValue&) const">itemOfValue</a>(const BValue& value) const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#moveItem(const BComboItem*, int)">moveItem</a>(const BComboItem* item, int index);</td></tr>
				<tr><td align="right">bool </td><td><a href="#moveItem(const BString&, int)">moveItem</a>(const BString& text, int index);</td></tr>
				<tr><td align="right">bool </td><td><a href="#moveItem(const BValue&, int)">moveItem</a>(const BValue& value, int index);</td></tr>
				<tr><td align="right">bool </td><td><a href="#setCurrent(BComboItem*)">setCurrent</a>(BComboItem* item);</td></tr>
				<tr><td align="right">const BComboItem* </td><td><a href="#current() const">current</a>() const;</td></tr>
				<tr><td align="right">BComboItem* </td><td><a href="#current()">current</a>();</td></tr>
				<tr><td align="right">bool </td><td><a href="#setCurrentText(const BString&)">setCurrentText</a>(const BString& text);</td></tr>
				<tr><td align="right">const BString&amp; </td><td><a href="#currentText() const">currentText</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#setCurrentIndex(int)">setCurrentIndex</a>(int index);</td></tr>
				<tr><td align="right">int </td><td><a href="#currentIndex() const">currentIndex</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setMaxShowCount(int)">setMaxShowCount</a>(int maxShowCount);</td></tr>
				<tr><td align="right">int </td><td><a href="#maxShowCount() const">maxShowCount</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setPopupOnClick(bool)">setPopupOnClick</a>(bool popupOnClick);</td></tr>
				<tr><td align="right">bool </td><td><a href="#popupOnClick() const">popupOnClick</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#showBoard()">showBoard</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#hideBoard()">hideBoard</a>();</td></tr>
				<tr><td align="right">virtual BSize </td><td><a href="#sizeHint() const">sizeHint</a>() const;</td></tr>
				<tr><td align="right">using </td><td><a href="#BWidget::query;()">BWidget::query;</a></td></tr>
				<tr><td align="right">virtual bool </td><td><a href="#query(const BString&, BValue&) const">query</a>(const BString& text, BValue& value) const;</td></tr>
			</table>
			<h2>protected</h2>
			<table id="protected">
				<tr><td align="right">virtual void </td><td><a href="#updateEvent(const BEvent&)">updateEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#resizeEvent(const BEvent&)">resizeEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#styleEvent(const BEvent&)">styleEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#freshEvent(const BEvent&)">freshEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#paintEvent(const BEvent&)">paintEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#activeEvent(const BEvent&)">activeEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#focusEvent(const BEvent&)">focusEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#inputEvent(const BEvent&)">inputEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#keyPressEvent(const BKeyEvent&)">keyPressEvent</a>(const BKeyEvent& keyEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#keyReleaseEvent(const BKeyEvent&)">keyReleaseEvent</a>(const BKeyEvent& keyEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseEnterEvent(const BMouseEvent&)">mouseEnterEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseLeaveEvent(const BMouseEvent&)">mouseLeaveEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mousePressEvent(const BMouseEvent&)">mousePressEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseReleaseEvent(const BMouseEvent&)">mouseReleaseEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseMoveEvent(const BMouseEvent&)">mouseMoveEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseClickEvent(const BMouseEvent&)">mouseClickEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mouseDoubleClickEvent(const BMouseEvent&)">mouseDoubleClickEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BComboBox是下拉编辑框，列表中的最多一项作为当前选中项，也可自行文本编辑。若右侧会显示一个箭头按钮，点击弹出下拉列表以进行选择。其列表项为类BComboItem，单个项拥有图标和文本，另包含一个值。</p><p>其中的项是标准构型，可使用item子样式进行修饰。框体显示的图标和文本与当前选中项也相同，但样式不同。</p>
				<h3>信号表:</h3>
				<table>
					<tr><td>Signal_Editable</td><td>当文本可编辑模式被改变时发出，值为：bool editable。</td></tr>
					<tr><td>Signal_ReadOnly</td><td>当只读模式开启或关闭时发出，值为：bool readOnly。</td></tr>
					<tr><td>Signal_FormatChanged</td><td>当文本格式化工具改变时发出，值为：BTextFormat* format。</td></tr>
					<tr><td>Signal_ValueChanged</td><td>当前值改变时发出，值为：BValue value。</td></tr>
					<tr><td>Signal_ItemInserted</td><td>当添加了新项时发出，值为：BComboItem* item。</td></tr>
					<tr><td>Signal_ItemRemoved</td><td>当移除了项时发出，值为：BComboItem* item。</td></tr>
					<tr><td>Signal_TextChanged</td><td>当前文本内容被改变时发出，值为：BString text。</td></tr>
					<tr><td>Signal_CurrentChanged </td><td>当前选项切换时发出，值为：BComboItem* item。</td></tr>
					<tr><td>Signal_TextEdited</td><td>在编辑模式下对文本进行编辑时发出，值为：BString text。</td></tr>
					<tr><td>Signal_EditFinished</td><td>在编辑模式下文本编辑完成时发出，值为：BString text。</td></tr>
				</table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BComboBox(BWidget*)">
				<h3>BComboBox(BWidget* parent = 0);</h3>
				<p>构造一个下拉框，parent指定其父控件。</p>
			</div>
			<div id="BComboBox(Form,BWidget*)">
				<h3>BComboBox(Form form, BWidget* parent = 0);</h3>
				<p>构造一个下拉框，form指定其显示形式，parent指定其父控件。</p>
			</div>
			<div id="BComboBox(const BString&,BWidget*)">
				<h3>BComboBox(const BString&amp; text, BWidget* parent = 0);</h3>
				<p>构造一个下拉框，text指定其文本内容，parent指定其父控件。</p>
			</div>
			<div id="~BComboBox()">
				<h3>~BComboBox();</h3>
				<p>析构一个下拉框。</p>
			</div>
			<div id="setAlign(Align)">
				<h3>void setAlign(Align align);</h3>
				<p>设置内容显示的对齐方式。</p>
			</div>
			<div id="align() const">
				<h3>Align align() const;</h3>
				<p>获得内容显示的对齐方式。</p>
			</div>
			<div id="setForm(Form)">
				<h3>void setForm(Form form);</h3>
				<p>设置内容的显示形式。</p>
			</div>
			<div id="form() const">
				<h3>Form form() const;</h3>
				<p>获得内容的显示形式。</p>
			</div>
			<div id="setSpacing(int)">
				<h3>void setSpacing(int spacing);</h3>
				<p>设置图标与文本的间隔。</p>
			</div>
			<div id="spacing() const">
				<h3>int spacing() const;</h3>
				<p>获得图标与文本的间隔。</p>
			</div>
			<div id="setEditable(bool)">
				<h3>void setEditable(bool editable);</h3>
			</div>
			<div id="editable() const">
				<h3>bool editable() const;</h3>
				<p>获取是否开启文本编辑模式。</p>
			</div>
			<div id="setReadOnly(bool)">
				<h3>void setReadOnly(bool readOnly);</h3>
				<p>设置否为只读模式，就是不可手动进行下拉列表选择。</p>
			</div>
			<div id="readOnly() const">
				<h3>bool readOnly() const;</h3>
				<p>获得否为只读模式。</p>
			</div>
			<div id="setArrowVisible(bool)">
				<h3>void setArrowVisible(bool arrowVisible);</h3>
				<p>设置是否显示箭头按钮。</p>
			</div>
			<div id="arrowVisible() const">
				<h3>bool arrowVisible() const;</h3>
				<p>判断当前是否显示箭头按钮。</p>
			</div>
			<div id="setArrowSize(const BSize&)">
				<h3>void setArrowSize(const BSize&amp; arrowSize);</h3>
				<p>设置右侧的箭头按钮的尺寸。</p>
			</div>
			<div id="arrowSize() const">
				<h3>const BSize&amp; arrowSize() const;</h3>
				<p>获得右侧的箭头按钮的尺寸。</p>
			</div>
			<div id="setIconSize(const BSize&)">
				<h3>void setIconSize(const BSize&amp; iconSize);</h3>
				<p>设置图标尺寸。</p>
			</div>
			<div id="iconSize() const">
				<h3>const BSize&amp; iconSize() const;</h3>
				<p>获得图标尺寸。</p>
			</div>
			<div id="setText(const BString&)">
				<h3>bool setText(const BString&amp; text);</h3>
				<p>设置文本。若当前是文本可编辑模式，则设置为当前的内容文本。若不是编辑模式，则选择文本相同的项为当前项。</p>
			</div>
			<div id="text() const">
				<h3>const BString&amp; text() const;</h3>
				<p>获得当前文本。</p>
			</div>
			<div id="setTextFormat(BTextFormat*)">
				<h3>void setTextFormat(BTextFormat* textFormat);</h3>
				<p>设置文本格式化对象。</p>
			</div>
			<div id="textFormat() const">
				<h3>const BTextFormat* textFormat() const;</h3>
				<p>获得文本格式化对象。</p>
			</div>
			<div id="textFormat()">
				<h3>BTextFormat* textFormat();</h3>
			</div>
			<div id="setValue(const BValue&)">
				<h3>void setValue(const BValue&amp; value);</h3>
				<p>设置当前值。若当前为可编辑状态且当前项为空则设置首选值。若不是可编辑模式则选取值同于此值的项为当前项。</p>
			</div>
			<div id="value() const">
				<h3>const BValue&amp; value() const;</h3>
				<p>获得当前值。</p>
			</div>
			<div id="addItem(BComboItem*)">
				<h3>bool addItem(BComboItem* item);</h3>
				<p>添加一个新的项。</p>
			</div>
			<div id="addItem(const BString&,const BValue&)">
				<h3>BComboItem* addItem(const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>添加一个新的项，text指定新项的文本，value指定新项的值。</p>
			</div>
			<div id="addItem(Graph, const BString&,const BValue&)">
				<h3>BComboItem* addItem(Graph graph, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>添加一个新的项，graph指定新项的图样，text指定新项的文本，value指定新项的值。</p>
			</div>
			<div id="addItem(BIcon*, const BString&,const BValue&)">
				<h3>BComboItem* addItem(BIcon* icon, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>添加一个新的项，icon指定新项的图标，text指定新项的文本，value指定新项的值。</p>
			</div>
			<div id="addItem(BImage*, const BString&,const BValue&)">
				<h3>BComboItem* addItem(BImage* image, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>添加一个新的项，image指定新项的图像，text指定新项的文本，value指定新项的值。</p>
			</div>
			<div id="insertItem(int, BComboItem*)">
				<h3>bool insertItem(int pos, BComboItem* item);</h3>
				<p>在索引值为pos的位置插入一个项。</p>
			</div>
			<div id="insertItem(int, const BString&,const BValue&)">
				<h3>BComboItem* insertItem(int pos, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>在索引值为pos的位置插入一个新的项，text指定为新项的文本，value指定新项的值。</p>
			</div>
			<div id="insertItem(int, Graph, const BString&,const BValue&)">
				<h3>BComboItem* insertItem(int pos, Graph graph, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>在索引值为pos的位置插入一个新的项，graph指定新项的图样，text指定为新项的文本，value指定新项的值。</p>
			</div>
			<div id="insertItem(int, BIcon*, const BString&,const BValue&)">
				<h3>BComboItem* insertItem(int pos, BIcon* icon, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>在索引值为pos的位置插入一个新的项，icon指定新项的图标，text指定为新项的文本，value指定新项的值。</p>
			</div>
			<div id="insertItem(int, BImage*, const BString&,const BValue&)">
				<h3>BComboItem* insertItem(int pos, BImage* image, const BString&amp; text, const BValue&amp; value = BValue());</h3>
				<p>在索引值为pos的位置插入一个新的项，image指定新项的图像，text指定为新项的文本，value指定新项的值。</p>
			</div>
			<div id="removeItem(BComboItem*)">
				<h3>bool removeItem(BComboItem* item);</h3>
				<p>移除一个项。</p>
			</div>
			<div id="removeItem(const BString&)">
				<h3>bool removeItem(const BString&amp; text);</h3>
				<p>移除一个文本等于text的项。</p>
			</div>
			<div id="removeItem(int)">
				<h3>bool removeItem(int index);</h3>
				<p>移除index位置的一个项。</p>
			</div>
			<div id="clearItems()">
				<h3>void clearItems();</h3>
				<p>移除所有项，第三个项发出移除信号：Signal_ItemRemoved。</p>
			</div>
			<div id="containItem(const BComboItem*) const">
				<h3>bool containItem(const BComboItem* item) const;</h3>
				<p>判断是否包含指定的项。</p>
			</div>
			<div id="containItem(const BValue&) const">
				<h3>bool containItem(const BValue&amp; value) const;</h3>
				<p>判断是否包含值同于value的项。</p>
			</div>
			<div id="containItem(const BString&) const">
				<h3>bool containItem(const BString&amp; text) const;</h3>
				<p>判断是否包含文本同于text的项。</p>
			</div>
			<div id="itemIndex(const BComboItem*) const">
				<h3>int itemIndex(const BComboItem* item) const;</h3>
				<p>获得指定项的位置索引值。</p>
			</div>
			<div id="itemIndex(const BValue&) const">
				<h3>int itemIndex(const BValue&amp; value) const;</h3>
				<p>获得值同于value的项的位置索引值。</p>
			</div>
			<div id="itemIndex(const BString&) const">
				<h3>int itemIndex(const BString&amp; text) const;</h3>
				<p>获得text等于text的项的位置索引值。</p>
			</div>
			<div id="itemCount() const">
				<h3>int itemCount() const;</h3>
				<p>获得包含的项的数量。</p>
			</div>
			<div id="item(int)">
				<h3>BComboItem* item(int index);</h3>
				<p>获得指定位置的项。</p>
			</div>
			<div id="item(int) const">
				<h3>const BComboItem* item(int index) const;</h3>
			</div>
			<div id="itemOfText(const BString&)">
				<h3>BComboItem* itemOfText(const BString&amp; text);</h3>
				<p>获得文本同于text的项。</p>
			</div>
			<div id="itemOfText(const BString&) const">
				<h3>const BComboItem* itemOfText(const BString&amp; text) const;</h3>
			</div>
			<div id="itemOfValue(const BValue&)">
				<h3>BComboItem* itemOfValue(const BValue&amp; value);</h3>
				<p>获得文值等于value的项。</p>
			</div>
			<div id="itemOfValue(const BValue&) const">
				<h3>const BComboItem* itemOfValue(const BValue&amp; value) const;</h3>
			</div>
			<div id="moveItem(const BComboItem*, int)">
				<h3>bool moveItem(const BComboItem* item, int index);</h3>
				<p>移动指定项到index位置。</p>
			</div>
			<div id="moveItem(const BString&, int)">
				<h3>bool moveItem(const BString&amp; text, int index);</h3>
				<p>移动文本同于text的项到index位置。</p>
			</div>
			<div id="moveItem(const BValue&, int)">
				<h3>bool moveItem(const BValue&amp; value, int index);</h3>
				<p>移动文本同于text的项到index位置。</p>
			</div>
			<div id="setCurrent(BComboItem*)">
				<h3>bool setCurrent(BComboItem* item);</h3>
				<p>设置指定项为当前项。</p>
			</div>
			<div id="current() const">
				<h3>const BComboItem* current() const;</h3>
				<p>获得当前项。</p>
			</div>
			<div id="current()">
				<h3>BComboItem* current();</h3>
			</div>
			<div id="setCurrentText(const BString&)">
				<h3>bool setCurrentText(const BString&amp; text);</h3>
				<p>设置文本等于text的项为当前项。</p>
			</div>
			<div id="currentText() const">
				<h3>const BString&amp; currentText() const;</h3>
				<p>获得当前的文本，如果有当前项则返回其文本，否则返回编辑缓存中的文本。</p>
			</div>
			<div id="setCurrentIndex(int)">
				<h3>bool setCurrentIndex(int index);</h3>
				<p>设置次序为index的项为当前项。</p>
			</div>
			<div id="currentIndex() const">
				<h3>int currentIndex() const;</h3>
				<p>获得当前项的索引。</p>
			</div>
			<div id="setMaxShowCount(int)">
				<h3>void setMaxShowCount(int maxShowCount);</h3>
				<p>设置弹出列表中最多显示的项数量。</p>
			</div>
			<div id="maxShowCount() const">
				<h3>int maxShowCount() const;</h3>
				<p>获得弹出列表中最多显示的项数量。</p>
			</div>
			<div id="setPopupOnClick(bool)">
				<h3>void setPopupOnClick(bool popupOnClick);</h3>
				<p>设置点击控件时是否弹出列表。</p>
			</div>
			<div id="popupOnClick() const">
				<h3>bool popupOnClick() const;</h3>
				<p>获得点击控件时是否弹出列表。</p>
			</div>
			<div id="showBoard()">
				<h3>void showBoard();</h3>
				<p>弹出下拉列表。</p>
			</div>
			<div id="hideBoard()">
				<h3>void hideBoard();</h3>
				<p>隐藏下拉列表。</p>
			</div>
			<div id="sizeHint() const">
				<h3>virtual BSize sizeHint() const;</h3>
				<p>计算合适的尺寸，包括所有元素的内容宽度。</p>
			</div>
			<div id="BWidget::query;()">
				<h3>using BWidget::query;</h3>
			</div>
			<div id="query(const BString&, BValue&) const">
				<h3>virtual bool query(const BString&amp; text, BValue&amp; value) const;</h3>
				<p>查询表：</p><table>
					<tr><td>board</td><td>获得弹出面板，值为：BScrollArea* board。</td></tr>
					<tr><td>arrow</td><td>获得箭头按钮，值为：BButton* arrow。</td></tr>
					<tr><td>icon-rect</td><td>获得图标显示的矩形区域，值为：BRect iconRect。</td></tr>
					<tr><td>text-rect</td><td>获得文本显示的矩形区域，值为：BRect textRect。</td></tr></table>
			</div>
			<div id="updateEvent(const BEvent&)">
				<h3>virtual void updateEvent(const BEvent&amp; event);</h3>
				<p>更新输入光标的闪烁。</p>
			</div>
			<div id="resizeEvent(const BEvent&)">
				<h3>virtual void resizeEvent(const BEvent&amp; event);</h3>
				<p>重新调整显示布局。</p>
			</div>
			<div id="styleEvent(const BEvent&)">
				<h3>virtual void styleEvent(const BEvent&amp; event);</h3>
				<p>样式取值：</p><table>
					<tr><td>Value_Form</td><td>取值为显示形式，值为：Form form。</td></tr>
					<tr><td>Value_Align</td><td>取值为显示对齐方式，值为：Align align。</td></tr>
					<tr><td>Value_Spacing</td><td>取值为图标和文本的间隔，值为：int spacing。</td></tr></table>
			</div>
			<div id="freshEvent(const BEvent&)">
				<h3>virtual void freshEvent(const BEvent&amp; event);</h3>
				<p>更新所有项的显示布局。</p>
			</div>
			<div id="paintEvent(const BEvent&)">
				<h3>virtual void paintEvent(const BEvent&amp; event);</h3>
				<p>绘制此框体内容，以及编辑时的光标。</p>
			</div>
			<div id="activeEvent(const BEvent&)">
				<h3>virtual void activeEvent(const BEvent&amp; event);</h3>
				<p>当状态改变为非活动时收起下拉列表。</p>
			</div>
			<div id="focusEvent(const BEvent&)">
				<h3>virtual void focusEvent(const BEvent&amp; event);</h3>
				<p>若开启了文本编辑模式，那么当获得焦点时选中所有文本，失去焦点时如果已经编辑过文本了则发出完成编辑的信号：Signal_EditFinished。</p>
			</div>
			<div id="inputEvent(const BEvent&)">
				<h3>virtual void inputEvent(const BEvent&amp; event);</h3>
				<p>若开启了文本编辑模式，处理输入字符事件。</p>
			</div>
			<div id="keyPressEvent(const BKeyEvent&)">
				<h3>virtual void keyPressEvent(const BKeyEvent&amp; keyEvent);</h3>
				<p>若开启了文本编辑模式，处理各按键按下事件，包括复制、粘贴等快捷键组合。</p>
			</div>
			<div id="keyReleaseEvent(const BKeyEvent&)">
				<h3>virtual void keyReleaseEvent(const BKeyEvent&amp; keyEvent);</h3>
			</div>
			<div id="mouseEnterEvent(const BMouseEvent&)">
				<h3>virtual void mouseEnterEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>若开启了文本编辑模式，更新字符光标位置。</p>
			</div>
			<div id="mouseLeaveEvent(const BMouseEvent&)">
				<h3>virtual void mouseLeaveEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>若开启了文本编辑模式，更新字符光标位置。</p>
			</div>
			<div id="mousePressEvent(const BMouseEvent&)">
				<h3>virtual void mousePressEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>若开启了文本编辑模式，切换编辑光标的位置。</p>
			</div>
			<div id="mouseReleaseEvent(const BMouseEvent&)">
				<h3>virtual void mouseReleaseEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>处理拖动鼠标选择文本的操作。</p>
			</div>
			<div id="mouseMoveEvent(const BMouseEvent&)">
				<h3>virtual void mouseMoveEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>处理拖动鼠标选择文本的操作。</p>
			</div>
			<div id="mouseClickEvent(const BMouseEvent&)">
				<h3>virtual void mouseClickEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>若开启了点击弹出下拉列表功能时，弹出下拉列表。</p>
			</div>
			<div id="mouseDoubleClickEvent(const BMouseEvent&)">
				<h3>virtual void mouseDoubleClickEvent(const BMouseEvent&amp; mouseEvent);</h3>
				<p>若开启了文本编辑模式，双击选择当前光标位置的词。</p>
			</div>
		</div>
	</body>
</html>